Dynamic Drive DHTML code library!
Dynamicdrive.com


.
spacer.gif (807 bytes)
.

Menu

Search DD
Recommend DD
Email offers
DHTML books
Advertising
Contact

Featured Script
Pop-it menu 

Pop-it allows you to associate a drop-down menu with regular links on your page!
.

Partners

JavaScript Kit
.

Link to DD

Do you use scripts from Dynamic Drive? Please give something back by linking to us...
.
spacer.gif (807 bytes)

Home Small4.gif (1046 bytes) Mouse Trail effects Small4.gif (1046 bytes) Here

Cursor Trailer Text All

Credits:
Name: Peter Gehrig
Website: Homepage
Notes: Slightly modified by Dynamic Drive for IE specific bug

Description: It used to be that a mouse cursor was just a mouse cursor. Since DHTML came along and gave programmers the ability to track the precise coordinates of the mouse, it was only a matter of time that cursor effects started showing up. This is Peter's great cursor text effect. It's pretty self explanatory, not to mention awesome!

Demo: Got a mouse?


Directions Developer's View

Step 1: Insert the below inside the <head> section of the page:


To change the message, simply configure variable "message". As a general tip, the shorter the message, the more efficient the script runs. The text style can also be altered (change the declarations within the <style> tag.

Step 2: Add the below anywhere inside the <body> section of the page:


Step 3: Finally, what's left now is to insert the following BODY onload event handler inside the <body> tag itself:

<body onLoad="makesnake()" style="width:100%;overflow-x:hidden;overflow-y:scroll">

and you're done.

Say, here's an idea: try putting your site's address (ie: Dynamicdrive.com) as the message to display. People sure won't forget it that way!

Recommend Us!
-If you like Dynamic Drive, please recommend us to a friend...

Merchant Select
The #1 E-Commerce directory. Visit Merchant Select to find resources  for your online business!

Legend
All- Script works with Netscape 4 AND Internet Explorer 4+
NS- Indicates script works with Netscape 4 (NOT NS 6 yet)
IE- Indicates script works with Internet Explorer 4 and above
IE5- Indicates script works with Internet Explorer 5 and above
NS6!- Temporary index set up on script category pages to indicate script works in NS6


Copyright © 1998-2003 Dynamic Drive. Please read Terms Of Use here before using any of the scripts.